package 练习_判断用户是不是Vip;

public class Person {
	
	private String name;
	private boolean isVip;
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public void isVip() {
		if (this.isVip) {
			System.out.println( this.name + "是Vip。");
			System.out.println("--------------------------");
		}else {
			System.out.println(this.name + "不是Vip。");
			System.out.println("--------------------------");
		}
	}
	
	public void setVip(int num) {
		if (num==1) {
			this.isVip = true;
		}else {
			this.isVip = false;
		}
	}

	public Person() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	
	

}
